package com.itheima.ood.keywords.demo03;

import com.itheima.ood.keywords.demo02.Student;

public class NewStudent extends Student {

    public static void main(String[] args) {

        // 创建Student的对象
        NewStudent student = new NewStudent();
//        student.show();                    // private不能访问
//        student.function();
        student.method();
        student.sleep();


    }

}
